package com.qingcloud.adminbackend.entity.message;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 事件管理表
 */
@Data
@Accessors(chain = true)
public class SysMessageEventVo   {
    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty(value = "事件名称")
    @NotNull(message = "事件名称不能为空！")
    private String eventName;

    /**
     * 事件类型配置id（sys_message_type_config表id）
     */
    @ApiModelProperty(value = "事件类型配置Id")
    @NotNull(message = "请选择事件类型！")
    private Integer typeId;

    @ApiModelProperty(value = "事件来源：（1：硬件设备；2应用系统）")
    @NotNull(message = "请选择事件来源！")
    private Integer eventOrigin;

    @ApiModelProperty(value = "触发类型：1直接映射；2定时触发；3：事件监听")
    private Integer triggerType;

    @ApiModelProperty(value = "是否开启（0:关闭；1：开启）")
    private Integer status;

    @ApiModelProperty(value = "事件管理的模型")
    private List<SysMessageNotify> sysMessageNotifies;
}
